package com.quanxi.qxaimain;

/**
 * @Author lyx
 * @create 2022/9/2 14:22
 */
public class InsufficientFundsException extends Exception
{

    //此处的amount用来储存当出现异常（取出钱多于余额时）所缺乏的钱
    private double amount;
    public void setAmount(double amount) {
        this.amount = amount;
    }

    public double getAmount()
    {
        return amount;
    }



    public InsufficientFundsException(double amount)
    {
        this.amount = amount;
    }


}